package com.dailyblue.project.estate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.project.estate.commons.bean.Building;
import com.dailyblue.project.estate.commons.util.JsonResult;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:BuildingService
 * @Date:2025/9/18 11:23
 */
@Service
public interface BuildingService extends IService<Building> {
    //添加数据
    JsonResult saveBuilding(Building building);

    //查找一条数据
    JsonResult findBuildingById(String id);

    //查找所有数据
    JsonResult findBuildingsAll();

    //删除一条数据
    JsonResult deleteBuilding(String id);

    //更新数据
    JsonResult updateBuilding(Building building);
}
